﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Javavaj.iHunter.UI
{
    public partial class DeleteDatabaseForm : DevComponents.DotNetBar.Office2007Form
    {
        public DeleteDatabaseForm()
        {
            InitializeComponent();
        }
        public bool DeleteAll
        {
            get { return radioDeleteAll.Checked; }
        }
        public bool DeleteMessages
        {
            get { return checkDelteMessages.Checked; }

        }
        public bool DeleteGlobalSettings
        {
            get { return checkDeleteGlobalSettings.Checked; }

        }
        public bool DeletePluginSettings
        {
            get { return checkDeletePluginSettings.Checked; }

        }

        private void DeleteDatabaseForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (e.CloseReason == CloseReason.UserClosing)
            {
                this.Hide();
                e.Cancel = true;
            }
        }

        private void radioDeletePart_CheckedChanged(object sender, EventArgs e)
        {
            this.checkDeleteGlobalSettings.Enabled = radioDeletePart.Checked;
            this.checkDeletePluginSettings.Enabled = radioDeletePart.Checked;
            this.checkDelteMessages.Enabled = radioDeletePart.Checked;
       }
    }
}
